package com.bookmarket.controller;


import com.bookmarket.service.HJHShowService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/show")
public class HJHShowController {

    @Resource
    private HJHShowService hJHShowService;

    @RequestMapping("/ShowSales")
    public int ShowSales(){
        int num=hJHShowService.ShowSales();
        return num;
    }

    public HJHShowService gethJHShowService() {
        return hJHShowService;
    }

    public void sethJHShowService(HJHShowService hJHShowService) {
        this.hJHShowService = hJHShowService;
    }
}